package com.hltx.controller.vipbonus;

import java.math.BigDecimal;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.hltx.controller.base.BaseController;
import com.hltx.pojo.user.User;
import com.hltx.service.vipbonus.impl.VipBonusService;

@Controller
@RequestMapping( value = "vip_bonus")
public class VipBonusController extends BaseController {
	
	@Autowired
	private VipBonusService vipBonusService;
	@RequestMapping
	public ModelAndView test(HttpSession session){
		ModelAndView view = this.getModelAndView();
		User user =(User) session.getAttribute("sessionUser");	
		vipBonusService.vipBonusTask(user, new BigDecimal("100.00"));
		return view;
	}

}
